/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SmartLitterBox {
    static categoryCode = '010090005';

    static categoryName = '智能猫砂机';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return SmartLitterBox.categoryCode;
    }

    get categoryName() {
        return SmartLitterBox.categoryName;
    }

    getAutoCleanSwitch(params) {
        return command({
            method: 'getAutoCleanSwitch',
            methodId: 'pgh0UvJG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getDelayCleanTime(params) {
        return command({
            method: 'getDelayCleanTime',
            methodId: 'pdNCu1nq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getDeodorizationSwitch(params) {
        return command({
            method: 'getDeodorizationSwitch',
            methodId: 'pBTmAI0W',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLitterBoxFullReminder(params) {
        return command({
            method: 'getLitterBoxFullReminder',
            methodId: 'pkpD2Rx1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getReplaceCatLitterReminder(params) {
        return command({
            method: 'getReplaceCatLitterReminder',
            methodId: 'p0crZzwR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getStatus(params) {
        return command({
            method: 'getStatus',
            methodId: 'pz93VWZo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'ptRSgTXb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getToiletRecord(params) {
        return command({
            method: 'getToiletRecord',
            methodId: 'p3deYoRk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getUltravioletSwitch(params) {
        return command({
            method: 'getUltravioletSwitch',
            methodId: 'phEcQNyx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAutoCleanSwitch(params) {
        return command({
            method: 'setAutoCleanSwitch',
            methodId: 'peH3eUlr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setDelayCleanTime(params) {
        return command({
            method: 'setDelayCleanTime',
            methodId: 'pUPQDAkZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setDeodorizationSwitch(params) {
        return command({
            method: 'setDeodorizationSwitch',
            methodId: 'p1vZLi6V',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLitterBoxFullReminder(params) {
        return command({
            method: 'setLitterBoxFullReminder',
            methodId: 'pZgubrVL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setReplaceCatLitterReminder(params) {
        return command({
            method: 'setReplaceCatLitterReminder',
            methodId: 'pGox3yAS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pDrhrHs3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setUltravioletSwitch(params) {
        return command({
            method: 'setUltravioletSwitch',
            methodId: 'ppAr4CId',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SmartLitterBox;
